package com.thomas.sdk.manager;

import java.sql.Date;
import java.text.SimpleDateFormat;

import android.annotation.SuppressLint;

/**
 * 格式化时间的工具类
 * 
 * @author thomas
 * 
 */
public class DateManager {
	public static String formatDateTime() {
		String timestamp = getTime(System.currentTimeMillis());
		return timestamp;
	}

	@SuppressLint("SimpleDateFormat")
	public static String getTime(long time) {
		SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
		return format.format(new Date(time));
	}
}
